﻿using Daemon.Infrustructure.Contract;
using Daemon.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Daemon.Repository.Contract
{
	public interface ITokenInfoRepository : IRepository<TokenInfo, int>
	{
		List<TokenInfo> FindTokenInfoListByKey(string key);

		TokenInfo Save(int? id, TokenInfo token);

		TokenInfo Save(TokenInfo token);

		int DeleteByTokenKey(string tokenKey);

		int Delete(string key);

		int Delete(string key, string tokenValue);
	}
}
